import request from '@/utils/request'

// 查询系统配置
export function getConfigfuns() {
    return request({
        url: '/configfun/getAll',
        method: 'get'
    })
}

// 新增系统配置
export function addConfigfun(data) {
    return request({
        url: '/configfun/add',
        method: 'post',
        data
    })
}

// 更新系统配置
export function updateConfigfun(id, data) {
    return request({
        url: '/configfun/update?id=' + id,
        method: 'post',
        data
    })
}

// 删除系统配置
export function deleteConfigfun(id) {
    return request({
        url: '/configfun/delete?id=' + id,
        method: 'post'
    })
}

// 批量删除
export function multiDeleteConfigfuns(data) {
    return request({
        url: '/configfun/multiDelete',
        method: 'post',
        data
    })
}